﻿ @*
 * ---------------------------------------------------
 * 作者: MTQ 
 * 日期： 2021/5/6 12:46:15 
 * ---------------------------------------------------
 *@
   @model MTQ.Model.Base_Local    
   @using MTQ.BLL 
    
    @{                                         
        Layout = "~/Views/Shared/_Layout_lay_admin.cshtml";                                      
     }                                        
                                             
                                             
                                             
    <style>                                         
         body {                                     
            background-color: #ffffff;                                  
         }                                    
     </style>                                        
                                             
    <div class="layui-form layuimini-form">                                         
                                      
                                             
      <div class="layui-form-item">                                       
             <label class="layui-form-label "  formeld_key="Id" txt='Id' ></label>                                  
             <div class="layui-input-block">                                
                <input type="text" name="Id" placeholder=""  value="@Model.Id" autocomplete="off" class="layui-input">                             
               </div>                               
       </div>                                       
                                             
                                             
      <div class="layui-form-item">                                       
             <label class="layui-form-label  hidden "  formeld_key="Local_Id" txt='Local_Id' ></label>                                  
             <div class="layui-input-block">                                
                <input type="text" name="Local_Id" placeholder=""  value="@Model.Local_Id" autocomplete="off" class="layui-input">                             
               </div>                               
       </div>                                       
                                             
                                             
      <div class="layui-form-item">                                       
             <label class="layui-form-label "  formeld_key="Local_KeyWord" txt='Local_KeyWord' ></label>                                  
             <div class="layui-input-block">                                
                <input type="text" name="Local_KeyWord" placeholder=""  value="@Model.Local_KeyWord" autocomplete="off" class="layui-input">                             
               </div>                               
       </div>                                       
                                             
                                             
      <div class="layui-form-item">                                       
             <label class="layui-form-label "  formeld_key="Local_zh_CN" txt='Local_zh_CN' ></label>                                  
             <div class="layui-input-block">                                
                <input type="text" name="Local_zh_CN" placeholder=""  value="@Model.Local_zh_CN" autocomplete="off" class="layui-input">                             
               </div>                               
       </div>                                       
                                             
                                             
      <div class="layui-form-item">                                       
             <label class="layui-form-label "  formeld_key="Local_en_US" txt='Local_en_US' ></label>                                  
             <div class="layui-input-block">                                
                <input type="text" name="Local_en_US" placeholder=""  value="@Model.Local_en_US" autocomplete="off" class="layui-input">                             
               </div>                               
       </div>                                       
                                             
                                             
      <div class="layui-form-item">                                       
             <label class="layui-form-label "  formeld_key="Local_Page" txt='Local_Page' ></label>                                  
             <div class="layui-input-block">                                
                <input type="text" name="Local_Page" placeholder=""  value="@Model.Local_Page" autocomplete="off" class="layui-input">                             
               </div>                               
       </div>                                       
                                             
                                             
      <div class="layui-form-item">                                       
             <label class="layui-form-label "  formeld_key="Local_Remark" txt='Local_Remark' ></label>                                  
             <div class="layui-input-block">                                
                <input type="text" name="Local_Remark" placeholder=""  value="@Model.Local_Remark" autocomplete="off" class="layui-input">                             
               </div>                               
       </div>                                       
                                             
                                             
                                             
                                             
                                             
                                             
                                             
      <div class="layui-form-item">                                        
            <div class="layui-input-block">                                 
                  <button class="layui-btn layui-btn-normal" lay-submit lay-filter="saveBtn">确认保存</button>                            
              </div>                                
       </div>                                       
                                             
     </div>                                        
                                             
                                             
                                             
      <script>                                                     
          layui.use(['form'], function () {                        
              var form = layui.form,                               
                  layer = layui.layer,                             
                  $ = layui.$;                                     
                                                                   
              //监听提交                                           
              form.on('submit(saveBtn)', function (data) {         
                                                                   
                  $.ajax({                                         
                      url: '/Base_Local/Edit',                       
                      type: 'post',                                
                      dataType: 'text',                            
                      data: data.field,                            
                      success: function (resp) {                   
                          var json = eval('(' + resp + ')');       
                          var index = layer.alert(json.Message, function () {      
                              // 关闭弹出层      
                              layer.close(index);      
                              parent.reloadTable();      
                              var iframeIndex = parent.layer.getFrameIndex(window.name);      
                              parent.layer.close(iframeIndex);       
                          });                                        
                          //layer.alert(json.Message);               
                          //reloadTable();                           
                      },                                             
                      error: function (resp) {                       
                          layer.alert("对不起出错了");             
                      }                                              
                  });                                                
                                                                     
                                                                     
                  return false;                                      
              });                                                    
          showFormelDtxt(base_local_entity);                             
           });                                                       
      </script>                                                      
                                             
                                             
                                             
                                             
                                             
                                             
                                             

